<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<% pageContext.setAttribute("ctx",request.getContextPath());%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>博客系统后台管理</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link href="${ctx}/images/style2.css" type="text/css" rel="stylesheet"> 
</head>
<body>
<script src="${ctx}/js/md5.js"></script>
<script>
function securePwd() {
	document.forms[0].password.value=hex_md5("WwW.vken.CoM_" + document.forms[0].password.value);
	return true;
}
</script>

<div id="container">	
<div id="banner">
		<h3>博客系统管理员登录</h3>
</div>
<br/>
<div id="main">
  <div style ="color:red;" > 
      ${message} 
      <s:fielderror/>
  </div > 
<s:form action="login" namespace="/user" theme="simple" onSubmit="return securePwd();">
<table id="tab">
<tr>
    <td>用户: </td>
    <td><s:textfield name="user.username" size="20" maxlength="20"/></td>
</tr>
<tr>
    <td>密码: </td>
    <td><s:password id="password" name="user.password" size="20" maxlength="20" /></td>
</tr>
<tr>
    <td colspan="2">
		<s:submit name="submit" value="登录"/>		
    </td>
</table>
</s:form>

</div>
<div style="clear: both;">&#160;</div>
</div><!-- end container -->
<div id="copyright"> Copyright &copy;2011 <a href="http://www.vken.com" target="_blank">vken工作室</a></div>
</body>
</html>		